package com.fiidee.blog.mapper;

import com.fiidee.blog.dto.BlogCategoryDTO;
import com.fiidee.blog.entity.BlogCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BlogCategoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BlogCategory record);

    int insertSelective(BlogCategory record);

    BlogCategory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BlogCategory record);

    int updateByPrimaryKey(BlogCategory record);

    List<BlogCategory> selectByDTO(@Param("dto")BlogCategoryDTO dto);

    int deleteInIds(@Param("ids")String ids);

    List<Map<String,Object>> selectCategoryRightSide();
}